home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c++ / 86 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.6 KB

  1. Path: fido.asd.sgi.com!austern
  2. From: David Byrden <100101.2547@compuserve.com>
  3. Newsgroups: comp.std.c++
  4. Subject: Can Allocators be used outside of RAM?
  5. Date: 22 Jan 1996 09:39:26 PST
  6. Organization: self-employed
  7. Approved: austern@isolde.mti.sgi.com
  8. Message-ID: <4drn5s$8n9@news.bridge.net>
  9. NNTP-Posting-Host: isolde.mti.sgi.com
  10. X-Original-Date: 20 Jan 1996 21:34:52 GMT
  11. X-Mailer: Mozilla 1.1N (Windows; I; 16bit)
  12. X-Auth: PGPMoose V1.1 PGP comp.std.c++
  13.     iQBVAwUBMQPL4Ey4NqrwXLNJAQFuJQH/X6qdkWis8DkjtUGK2jX+bp0x33ICyyme
  14.     KRFFTAgQcmLxo0PPTyujJfD3OvQZGOh2Gp7Kc4pm3S1KT1VklWtDxQ==
  15.     =RG66
  16. Originator: austern@isolde.mti.sgi.com
  17.  
  18. I wonder whether anyone can clarify one intent of the Standards 
  19. committee with respect to allocators? 
  20.  
  21. I hope that it shall be possible, through provision of an Allocator 
  22. class, for containers to use generalised storage devices for their 
  23. data; for example, devices accessed through an API.
  24.  
  25. Reading the September '95 draft standard, however, I find mention only of 
  26. "main  memory,  shared  memory,  or  private heaps"  and the recent 
  27. requirements that allocator-supplied pointers and references be 
  28. convertible to T* and T&. These seem to suggest that allocators can only 
  29. support addressable memory.
  30.  
  31. I cannot deduce unambigously from the various specifications whether API 
  32. storage is or is not intended to be usable through Allocators. Does 
  33. anyone know?
  34.  
  35.  
  36.                  David
  37. ---
  38. [ comp.std.c++ is moderated.  Submission address: std-c++@ncar.ucar.edu.
  39.   Contact address: std-c++-request@ncar.ucar.edu.  The moderation policy
  40.   is summarized in http://dogbert.lbl.gov/~matt/std-c++/policy.html. ]
  41.